﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;

namespace VendorExpenses.Model
{
    public class Expense
    {
        [BsonId]
        public ObjectId _ExpenseId { get; set; }
        public int ExpenseId { get; set; }
        public string ExpenseDate { get; set; }
        public double ExpenseSum { get; set; }

        [BsonIgnore]
        public int VendorId { get; set; }
        [BsonIgnore]
        public virtual Vendor Vendor { get; set; }
    }
}
